﻿function RXMLDocument(){
    this.xmlDoc=null;
    if(typeof window.ActiveXObject != 'undefined'){/*Microsoft IE*/
		this.xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
        this.xmlDoc.async = false;
        while(this.xmlDoc.readyState != 4) {};
	}else if(typeof document.implementation != 'undefined'&& typeof document.implementation.createDocument != 'undefined'){/*Mozilla */
		this.xmlDoc = document.implementation.createDocument("","",null);
	}
	
	this.loadXML=function(xmlstr){
	    if(window.event){
	        this.xmlDoc.loadXML(xmlstr);
	    }else{
            var oParser=new DOMParser();
            this.xmlDoc=oParser.parseFromString(xmlstr,"text/xml");

	    }	    
	}
    
    this.get=function(){
		return this.xmlDoc;
	}
	
	this.toString=function(){
		return 'RXMLDocument';
	}
}

